package com.itheima.apidemo;

public class Test2 {

    public static void main(String[] args) {
        // 创建StringBuilder对象
        StringBuilder sb = new StringBuilder();
        for (int i = 0; i < 1000000; i++){
            sb.append(i);
        }

        // 将StringBuilder转换为String
        String s = sb.toString();
        System.out.println(s);
    }
}
